-- GENERATED SPELL FOR [Hardknuckle Charger] --


function spell0_28096(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(49758,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28096', 568, 1)
end

function spell1_28096(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(27048,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28096', 0, 1)
end

function spell2_28096(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(27047,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28096', 0, 1)
end

function spell3_28096(pUnit, Event) --@Smack,n/a--
pUnit:FullCastSpellOnTarget(52475,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28096', 590, 1)
end

function Sorts_28096(pUnit, Event)
local choix_sorts_28096 = math.random(0, 3)
if choix_sorts_28096 == 0 then
pUnit:RegisterEvent('spell0_28096', 1, 1)
end
if choix_sorts_28096 == 1 then
pUnit:RegisterEvent('spell1_28096', 1, 1)
end
if choix_sorts_28096 == 2 then
pUnit:RegisterEvent('spell2_28096', 1, 1)
end
if choix_sorts_28096 == 3 then
pUnit:RegisterEvent('spell3_28096', 1, 1)
end
end

function mob28096_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28096', math.random(1500, 3000), 1)
end

function mob28096_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28096_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28096_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28096, 1, 'mob28096_Action')
RegisterUnitEvent(28096, 2, 'mob28096_Leave')
RegisterUnitEvent(28096, 3, 'mob28096_Kill')
RegisterUnitEvent(28096, 4, 'mob28096_Die')
